package string;

public class Demo15 {
    public static void main(String[] args) {
        String str = "Thinking in Java 是本好书";
        int index = str.lastIndexOf("in");
        System.out.println(index);

        index = str.lastIndexOf('a');
        System.out.println(index);
    }
}
